""""
元组的创建
"""
""""
    使用圆括号“()”创建元组
"""
"用逗号将元素隔开创建一个元组"
tuple_name = "Python",1,2
"常见做法"
tuple_name1 = ("Python",1,2)
"元组只有一个元素,也得加上逗号"
tuple_name2 = (1 , )
"可以为空"
tuple_name3 = ( )
""""
元组内容不可更改,会报错
tuple_name1 = ("Python",1,2)
tuple_name1[1] = "3"
"""

"""""
    通过tuple()创建元组
"""
tuple01 = tuple()

tuple02 = tuple(range(1,11))
tuple03 = tuple("Python" + "Hello")
tuple04 = tuple([1,2,3,4])
print(tuple01)
print(tuple02)
print(tuple03)
print(tuple04)